<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;

class ShopController extends Controller {

    public $gs = [
        1 => ['goods_id' => 1, 'goods_name' => '白百合 清香宜人', 'price' => 23.9],
        2 => ['goods_id' => 2, 'goods_name' => '红玫瑰 热烈奔放', 'price' => 23.2],
        3 => ['goods_id' => 3, 'goods_name' => '黄牡丹 雍容华贵', 'price' => 23.3],
        4 => ['goods_id' => 4, 'goods_name' => '狗尾巴 淡泊名利', 'price' => 23.4],
    ];

    public function shop() {

        return view('index', ['gs' => $this->gs]);
    }

    public function goods($gid) {
        return view('goods');
    }

    public function buy($gid) {

        return view('cart');
    }

}
